package pw.goyd.game.logic;

import pw.goyd.game.constant.setting.ServerSetting;
import pw.goyd.protocol.core.Serializer;

/**
 * 安全验证  返回版本信息
 *
 * @author StanWind
 */
public class SecureResponse extends Serializer {
    private String version;

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Override
    protected void read() {
        this.version = readString();
    }

    @Override
    protected void write() {
        writeString(ServerSetting.S_VERSION);
    }
}
